<?php
/**
 *  前端关于我们的管理
 * Author: lyun
 * Date: 2018/1/27
 * Created by Panxsoft.
 */


namespace App\Http\Controllers\Home;

use App\Http\Models\Admin\AboutUs;
use App\Services\Utils\ApiChecker;
use App\Services\Utils\ApiResponser;
use App\Http\Models\Partner;
use App\Http\Controllers\Controller;

class AboutUsController extends Controller
{
    use ApiChecker,ApiResponser;

    /**
     * @return array|\Illuminate\Http\Response
     */
    public function index()
    {
    //    $about_us = AboutUs::first();
        $partners = (new Partner())->latest('priority')->latest()->get();
        $about_us = (new AboutUs)->latest()->first();

    //    return $this->response(compact('about_us'));
        return view("official_website.about", compact('about_us','partners'));
    }
}
